package com.onlinevideo.service;

import com.onlinevideo.entity.VideoItem;
import org.apache.commons.fileupload.FileItem;

import java.util.List;

public interface VideoItemService {
    VideoItem insert(List<FileItem> fileItems);

    int insert(VideoItem videoItem);

    int delete(Long id);

    int deleteByVideoId(Long id);

    int update(List<FileItem> fileItems);

    int update(String name,Integer sortCount,Long id);

    VideoItem queryById(Long id);

    List<VideoItem> queryAll();

    List<VideoItem> queryByVideoId(Long id);

    /*String updateFile(List<FileItem> fileItems);*/
}
